/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package to.pm.acquisti.core;

import java.util.Date;
import java.util.List;
import javax.persistence.EntityManager;
import to.pm.entity.acquisti.DettaglioOrdineEsterno;
import to.pm.entity.acquisti.Fornitore;
import to.pm.entity.acquisti.OrdineEsterno;

/**
 *
 * @author mauri
 */
public class GestioneFornitore {
    private EntityManager em;

    public void setEm(EntityManager em) {
        this.em = em;
    }

    public EntityManager getEm() {
        return em;
    }

    public Fornitore addFornitore(Fornitore f){
        //TODO check se presenti indirizzo telefono...
        em.persist(f);
        return f;
    }
}
